home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3796 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Wolfenstein Texture mapping problem
  5. Date: 24 Feb 1996 16:21:49 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Distribution: world
  8. Message-ID: <4gndut$3n2@maureen.teleport.com>
  9. References: <4g5mv0$sns@news01.uni-trier.de> <4gk3jl$4po@maureen.teleport.com> <xLmtjMD0agz5@point86.people-s.people.de>
  10. NNTP-Posting-Host: kelly.teleport.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Tim Boescke (azure@people-s.people.de) wrote:
  14. : Reply to Re: Wolfenstein Texture mapping problem / 23.02.1996
  15. : by sschaem@teleport.com (Stephan Schaem)
  16.  
  17. : SS> : >  Mapping floor with a 32x32 texture pattern can be done in 13cycle
  18. : SS> 
  19. : SS> : Hmm. How was this loop again, I have forgot it..?
  20. : SS> 
  21. : SS>     move.l  d3,d2
  22. : SS>     and.w   d0,d2
  23. : SS>     movea.l d2,a0
  24. : SS>     move.b  (a0),(a1)+
  25. : SS>     addx.l  d1,d0
  26. : SS> 
  27. : SS>  Humm, 15cycle... 
  28.  
  29. :         addx.l d1,d0
  30. :         move   (a0,d0.w),(a1)+
  31.  
  32.  Yea, that require 64k per 32x32 texture to gain 3cycle per pixel.
  33.  But I was thinking of pattern mapping, something that unfortunatly both 
  34.  above dont do in X:
  35.  
  36.     move.l  d3,d2
  37.     and.w   d0,d2
  38.     addx.l    d1,d0
  39.     movea.l d2,a0
  40.     and.l    d4,d0
  41.     move.b    (a0),(a1)+
  42.  
  43.  17 cycle:( (or 14cycle waisting 64k per texture) that repeat a XxY 
  44.  texture (X and Y beying power of 2, X upto 16 and Y upto 32.) So you
  45.  can map a brick of 16x8 on a floor as many time as you want. or a 16x16
  46.  ceiling block. 
  47.  
  48.  13 was optimistic, 14 is a possibility.
  49.  
  50.  Stephan
  51.